package cap3;

class SignosVitales{
	//Atributos de clase
	private static final int umbralTemp=38;
	//Atributos de instancia
	private float temperatura;
	private PresionArterial presion ;
	//Constructor
	public SignosVitales (float t, PresionArterial p){
	//Requiere t > 0, expresada en grados
	  temperatura = t;
	  presion = p;}
	//Consultas
	public float obtenerTemperatura (){
	  return temperatura;}
	public PresionArterial obtenerPresion (){
	  return presion ;}
	public boolean alarma(){
	  return temperatura>umbralTemp || presion.alarmaHipertension();}
	}
